import React from 'react';
import { history } from 'umi';
import { Result, Button } from 'antd';
import Page from '@/components/page/index';

function Error() {
  return (
    <Page>
      <Result
        status="500"
        title="500"
        subTitle="服务出现异常，请稍后重试"
        extra={
          <Button type="primary" onClick={() => history.replace('/home')}>
            返回首页
          </Button>
        }
      />
    </Page>
  );
}

export default Error;
